package com.co.user.mapper;

import com.co.user.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author ldl.plus
 * @date 2020年06月22日  0:41
 */
@org.apache.ibatis.annotations.Mapper
public interface UserMapper extends Mapper<User> {

    @Select("select count(subname) from us_sub where pubname = #{username}")
    List<String> findSubsByUsername(@Param("username")String username);


}
